//
//  RotatorView.h
//  PictureRotator
//
//  Created by ZJ on 2018/7/30.
//  Copyright © 2018年 iCatch Technology Inc. All rights reserved.
//

// 图片轮播器视图
#import <UIKit/UIKit.h>

@class RotatorView;
@protocol RotatorViewDelegate <NSObject>

- (void)rotatorViewDidSelected:(RotatorView *)rotatorView pictureIndex:(NSUInteger)index;

@end

@interface RotatorView : UIView

@property (nonatomic, strong) UIColor *pageIndicatorTintColor; // default blueColor
@property (nonatomic, strong) UIColor *currentPageIndicatorTintColor; // defaulr redColor
@property (nonatomic, assign) NSTimeInterval rotatorInterval; // default 1.5

@property (nonatomic, weak) id<RotatorViewDelegate> delegate;

- (instancetype)initWithimages:(NSArray<UIImage *> *)images offsetY:(CGFloat)offsetY height:(CGFloat)height;

@end
